# -*- coding: utf-8 -*-
"""
@author: wyb
@date: 2023/12/17
@time: 18:12
@desc: Description
"""
from urllib import  request

url = 'http://httpbin.org/get'
headers = {'User-Agent': 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:65.0) Gecko/20100101 Firefox/65.0'}
req = request.Request(url = url,headers=headers)
res = request.urlopen(req)
html = res.read().decode()
print(html)
